{% extends "base.html" %}

{% block content %}
{% if training_date %}
<h2>Edycja terminu</h2>
{% else %}
<h2>Nowy termin</h2>
{% endif %}
<form action="." method="post">
    <table>
        {{ form.as_table }}
        <tr>
            {% if training_date %}
            <td colspan=2><input id="submit" type="submit" value="zapisz" /></td>
            {% else %}
            <td colspan=2><input id="submit" type="submit" value="dodaj" /></td>
            {% endif %}
        </tr>
    </table>
</form>
<a href="{{ return_url }}">Wróc</a>
{% endblock %}

